﻿using DataTransfer.SDK.Models;
using NPOI.SS.UserModel;
using System.Data;

namespace DataTransfer.SDK.Events
{
    /// <summary>
    /// 
    /// </summary>
    public class ExportExcelRowEventArgs : EventArgs
    {
        IExcelExportSheet _excelExportSheet;
        IRow _row;
        DataRow _dataRow;
        /// <summary>
        /// 
        /// </summary>
        /// <param name="excelExportSheet"></param>
        /// <param name="row"></param>
        /// <param name="dataRow"></param>
        public ExportExcelRowEventArgs(IExcelExportSheet excelExportSheet, IRow row, DataRow dataRow)
        {
            _row = row;
            _dataRow = dataRow;
            _excelExportSheet = excelExportSheet;
        }
        /// <summary>
        /// 
        /// </summary>
        public IExcelExportSheet ExportSheet
        {
            get { return _excelExportSheet; }
        }
        /// <summary>
        /// 
        /// </summary>
        public IRow Row
        {
            get { return _row; }
        }
        /// <summary>
        /// 
        /// </summary>
        public DataRow DataRow
        {
            get { return _dataRow; }
        }
    }

}
